<?php

/**
 * 自定义的路由的演示，规则设置参见 router.conf.php
 *
 * @author JiangJian <silverd@sohu.com>
 * $Id: UrlRewrite.php 156 2012-11-08 01:37:15Z silverd30@gmail.com $
 */

class Controller_Sample_UrlRewrite extends Core_Controller_Web
{
    // 以下几个URL等价
    // http://xianglephp/shop/789
    // http://xianglephp/_sample/url-rewrite
    // http://xianglephp/_sample/url-rewrite/index/shop_id/789
    // http://xianglephp/_sample/url-rewrite/index/?shop_id=789
    public function indexAction()
    {
        var_dump($this->get('shop_id'));
    }
}